package com.mcxx.modules.temporary.salary.service.write;

import com.mcxx.modules.temporary.salary.entity.TmpFamilySalaryEntity;
import com.mcxx.modules.temporary.salary.entity.TmpMemberSalaryEntity;
import com.mcxx.modules.temporary.salary.dao.write.TmpMemberSalaryWriteDao;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@TaTransactional
public class TmpMemberSalaryWriteService {

    @Autowired
    private TmpMemberSalaryWriteDao tmpMemberSalaryWriteDao;


    public int insert(TmpMemberSalaryEntity tmpMemberSalary) {
    	return tmpMemberSalaryWriteDao.insert(tmpMemberSalary);
    }


    public int insertIgnoreNull(TmpMemberSalaryEntity tmpMemberSalary) {
    	return tmpMemberSalaryWriteDao.insertIgnoreNull(tmpMemberSalary);
    }


    public int update(TmpMemberSalaryEntity tmpMemberSalary) {
    	return tmpMemberSalaryWriteDao.update(tmpMemberSalary);
    }


    public int updateIgnoreNull(TmpMemberSalaryEntity tmpMemberSalary) {
    	return tmpMemberSalaryWriteDao.updateIgnoreNull(tmpMemberSalary);
    }


    public int delete(String id) {
    	return tmpMemberSalaryWriteDao.delete(id);
    }

    public int deleteByOrderId(String orderId) {
    	return tmpMemberSalaryWriteDao.deleteByOrderId(orderId);
    }


    public int insertSalarys(List<TmpMemberSalaryEntity> tmpMemberSalaryList){
        return  tmpMemberSalaryWriteDao.insertSalarys(tmpMemberSalaryList);
    }

    public int updateIgnoreNullByOrderId(TmpMemberSalaryEntity tmpMemberSalaryEntity) {
        return tmpMemberSalaryWriteDao.updateIgnoreNullByOrderId(tmpMemberSalaryEntity);

    }

}
